second name and third name and print in reverse order